﻿<%@ Page Title="Trang quản trị" Language="C#" MasterPageFile="~/admin/admin.master" AutoEventWireup="true" CodeFile="giamgiave.aspx.cs" Inherits="admin_giamgiave" %>

<%@ Register assembly="DevExpress.Web.ASPxGridView.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dxwgv" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dxe" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div align="center">
    <dxwgv:ASPxGridView ID="ASPxGridView1" runat="server" 
        AutoGenerateColumns="False" onrowupdating="ASPxGridView1_RowUpdating" 
        KeyFieldName="maloaighe">
        <Columns>
            <dxwgv:GridViewCommandColumn VisibleIndex="0">
                <EditButton Visible="True">
                </EditButton>
            </dxwgv:GridViewCommandColumn>
            <dxwgv:GridViewDataTextColumn Caption="Mã loại ghế" FieldName="maloaighe" 
                VisibleIndex="1">
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Tên loại ghế" FieldName="tenloaighe" 
                VisibleIndex="2">
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Giá tiền" FieldName="giatien" 
                VisibleIndex="3">
            </dxwgv:GridViewDataTextColumn>
        </Columns>
        <SettingsText CommandUpdate="Lưu" CommandCancel="Hủy" CommandEdit="Sửa" />
        <Templates>
            <EditForm>
                <table style="width: 100%; height: 161px;">
                    <tr>
                        <td align="right">
                            Mã loại ghế</td>
                        <td>
                            <dxe:ASPxTextBox ID="ASPxTextBox1" runat="server" 
                                Text='<%# Eval("maloaighe") %>' Width="170px">
                            </dxe:ASPxTextBox>
                        </td>
                        <td align="right">
                            Tên loại ghế</td>
                        <td>
                            <dxe:ASPxTextBox ID="ASPxTextBox2" runat="server" 
                                Text='<%# Eval("tenloaighe") %>' Width="170px">
                            </dxe:ASPxTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            Giá tiền</td>
                        <td>
                            <dxe:ASPxTextBox ID="ASPxTextBox3" runat="server" Text='<%# Eval("giatien") %>' 
                                Width="170px">
                            </dxe:ASPxTextBox>
                        </td>
                        <td align="right">
                            Phần trăm giảm</td>
                        <td>
                            <dxe:ASPxTextBox ID="ASPxTextBox4" runat="server" Width="170px">
                            </dxe:ASPxTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            <dxwgv:ASPxGridViewTemplateReplacement ID="ASPxGridViewTemplateReplacement1" 
                                runat="server" ReplacementType="EditFormUpdateButton">
                            </dxwgv:ASPxGridViewTemplateReplacement>
                            <dxwgv:ASPxGridViewTemplateReplacement ID="ASPxGridViewTemplateReplacement2" 
                                runat="server" ReplacementType="EditFormCancelButton">
                            </dxwgv:ASPxGridViewTemplateReplacement>
                        </td>
                    </tr>
                </table>
            </EditForm>
        </Templates>
    </dxwgv:ASPxGridView>
    </div>
</asp:Content>

